<@master template="common/default" title="${ticket.id} ${ticket.title}" appendCss="css.umedit">
<div class="detailsBox clearfix">
	<div>
	<a class="btn_auto_30 btn_blue " target="_blank" href="/ticket/add?projectId=${ticket.projectId}">增加该项目工单</a>
	
		<#if canSubButton> <a class="btn_auto_30 btn_blue " target="_blank" href="<@url value='/ticket/createWith/createSub?ticketId=${ticket.id}'/>">创建子任务</a> <#else> </#if> <span>|</span> <#list ticketTypeStatusList as ticketTypeStatus> <a
			class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/ticket/getChangeStatusView?ticketId=${ticket.id}&ticketTypeStatusId=${ticketTypeStatus.id}'/>">${ticketTypeStatus.name}</a> </#list> <span>|</span> <a
			class="btn_auto_30 btn_blue action-ajax-btn" href="<@url value='/ticket/getAssignView?ticketId=${ticket.id}'/>">分配或者转移工单</a>
	</div>
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>工单信息<a href="<@url value='/ticket/getTicketEditHtml?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">修改工单基本信息</a>
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">ID&标题:</td>
						<td colspan="1">${ticket.id}  ${ticket.title}<#if ticket.parentTicketId??><br /> 父工单： <a href="/ticket/view/${ticket.parentTicketId}">${ticket.parentTicketId}</a> <@select dataSouceType="${ticket.parentTicketId}" dataSouceFrom="ticket" value="${ticket.parentTicketId}" renderonly="true"/></#if>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">项目:</td>
						<td><@select dataSouceType="allProject" dataSouceFrom="project" value="${ticket.projectId}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">类型:</td>
						<td><@select dataSouceType="ticketType" name="ticketTypeCode" data\-url="/ticket/getTicketTypeTemplate" data\-action\-html="#ticketTypeTemplate" value="${ticket.ticketTypeCode}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">当前经办人:</td>
						<td><@select dataSouceType="allUser" dataSouceFrom="user" value="${ticket.operator}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">状态:</td>
						<td><@select dataSouceType="ticketStatus" name="status" data\-url="/ticket/getTicketTypeTemplate" data\-action\-html="#ticketTypeTemplate" value="${ticket.status}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">优先级:</td>
						<td><@select dataSouceType="priority" class="tabInp" value="${ticket.priority}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%"><span title="报告人默认为创建人，报告人不是汇报人，所以不能搞混了，当工单创建后需要给到某个人做需求细化，需求细化的人就是报告人"><span class=" wenhaoIco"></span>报告人:</span></td>
						<td>${ticket.reporterName}</td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">阶段验收到期日期:</td>
						<td>${ticket.dueDate}</td>
					</tr>
				</tbody>
			</table>
			<@include file="ticket/ticketTypeTemplate/view/${ticket.ticketTypeCode}"/>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">变更信息:</td>
						<td>创建时间：${ticket.createDate} 修改时间：${ticket.updateDate} 创建人：<@select dataSouceType="allUser" dataSouceFrom="user" value="${ticket.creator}" renderonly="true"/> 修改人：<@select dataSouceType="allUser" dataSouceFrom="user" value="${ticket.updator}"
							renderonly="true"/></td>
					</tr>
				</tbody>
			</table>

		</div>
	</div>
	<div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>描述信息<a href="<@url value='/ticket/getTicketDescriptionsUpdateView?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">修改描述信息</a>
			</h3>
			<div class="detaiTab">
				<div><#noescape>${ticket.descriptions}</#noescape></div>
			</div>
		</div>
		<#if showTicketReleaseNoteInfo>
		<div class="action-ajax-load"  data-url="/ticket/releaseNote/getTicketReleaseNoteView?ticketId=${ticket.id}"></div>
		</#if>
		<#if isVersionTicket>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>该版本的工单
			</h3>
			<div class="detaiTab action-ajax-load" id="versionTickets"
			data-url="/ticket/ajax/search?render=${"#versionTickets"?url}&versions=${ticket.id}&orderBy=status&pageSize=100"></div>
		</div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>该版本的工单下的发布注意事项
			</h3>
			<div class="detaiTab action-ajax-load" id="releaseNoteTickets"
			data-url="/ticket/releaseNote/findTicket?render=${"#releaseNoteTickets"?url}&versions=${ticket.id}&orderBy=status&pageSize=100"></div>
		</div>
		</#if>
		<#if hasChildTicketList>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>子工单
			</h3>
			<div class="detaiTab action-ajax-load" id="childTicketList"
			data-url="/ticket/ajax/search?render=${"#childTicketList"?url}&parents=${ticket.id}&orderBy=status&pageSize=100"></div>
		</div>
		</#if>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>附件信息<a href="<@url value='/ticket/opt/getAttachmentEditView?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">增加</a>
			</h3>
			<div class="detaiTab"><@pagination paginationInfo="ticketAttachmentPaginationInfo"/></div>
		</div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>关联信息<a href="<@url value='/ticket/opt/getAssociationEditView?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">增加</a>
			</h3>
			<div class="detaiTab"><@pagination paginationInfo="ticketAssociationsPaginationInfo"/></div>
		</div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>关注信息<a href="<@url value='/ticket/opt/getWatcherEditView?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">增加</a>
			</h3>
			<div class="detaiTab"><@pagination paginationInfo="ticketWatcherPaginationInfo"/></div>
		</div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>备注信息<a href="<@url value='/ticket/opt/getCommentEditView?ticketId=${ticket.id}'/>" class="action-ajax-btn fr edit btn_blue">增加</a>
			</h3>
			<div class="detaiTab action-ajax-load" data-url="/ticket/opt/getAllTicketCommentView?ticketId=${ticket.id}">
				
			</div>
		</div>
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>修改历史
			</h3>
			<div class="detaiTab action-ajax-load" data-url="/ticket/opt/getTicketChangeLogListView?ticketId=${ticket.id}"></div>
		</div>
	</div>
</div>
<@js src="js.umedit.main;js.umedit.config;js.umedit.lang;"/> 
</@master>
